<?php
/**
* The Header for our theme.
*
* Displays all of the <head> section and everything up till <div id="main">
*
* @package WordPress
* @subpackage Artience
* @since Artience 0.1
*/
// require_once("/FirePHPCore/FirePHP.class.php");
// $firephp = FirePHP::getInstance(true);
?>
<!DOCTYPE HTML>
<!--[if IE 6]>
<html id="ie6" <?php language_attributes(); ?>>
<![endif]-->
<!--[if IE 7]>
<html id="ie7" <?php language_attributes(); ?>>
<![endif]-->
<!--[if IE 8]>
<html id="ie8" <?php language_attributes(); ?>>
<![endif]-->
<!--[if !(IE 6) | !(IE 7) | !(IE 8)  ]><!-->
<html xmlns="http://www.w3.org/1999/xhtml" xmlns:fb="http://www.facebook.com/2008/fbml" <?php language_attributes(); ?>>
<!--<![endif]-->
	<head>
	<meta charset="<?php bloginfo( 'charset' ); ?>" />
	<title><?php
	/*
	* Print the <title> tag based on what is being viewed.
	*/
	global $page, $paged;
	
	wp_title( '|', true, 'right' );
	
	// Add the blog name.
	bloginfo( 'name' );
	
	// Add the blog description for the home/front page.
	$site_description = get_bloginfo( 'description', 'display' );
	if ( $site_description && ( is_home() || is_front_page() ) )
	echo " | $site_description";
	
	// Add a page number if necessary:
	if ( $paged >= 2 || $page >= 2 )
	echo ' | ' . sprintf( __( 'Page %s', 'artience' ), max( $paged, $page ) );
	
	?></title>
	<!-- link rel="profile" href="http://gmpg.org/xfn/11" / -->
	<link rel="stylesheet" type="text/css" media="all" href="<?php bloginfo( 'stylesheet_url' ); ?>" />
	<link rel="pingback" href="<?php bloginfo( 'pingback_url' ); ?>" />
	<?php
	/* We add some JavaScript to pages with the comment form
	* to support sites with threaded comments (when in use).
	*/
	if ( is_singular() && get_option( 'thread_comments' ) )
	wp_enqueue_script( 'comment-reply' );
	
	/* Always have wp_head() just before the closing </head>
	* tag of your theme, or you will break many plugins, which
	* generally use this hook to add elements to <head> such
	* as styles, scripts, and meta tags.
	*/
	wp_head();
	?>
	
	<script type="text/javascript" src="<?php bloginfo('template_directory'); ?>/js/jquery-1.7.1.js"></script>
	<script type="text/javascript" src="<?php bloginfo('template_directory'); ?>/js/responsiveslides.js"></script>
	<script type="text/javascript" src="<?php bloginfo('template_directory'); ?>/js/custom.js"></script>
	<script type="text/javascript" src="<?php bloginfo('template_directory'); ?>/js/jquery.isotope.min.js"></script>
	<script type="text/javascript" src="<?php bloginfo('template_directory'); ?>/js/jquery.adipoli.min.js"></script>
	<script type="text/javascript" src="<?php bloginfo('template_directory'); ?>/js/jquery.fancybox-1.3.4.pack.js"></script>
	<link rel="stylesheet" type="text/css" href="<?php bloginfo('template_directory'); ?>/fancybox.css" />

</head>

<body <?php body_class(); ?>>
	<div id="page" class="hfeed">
		<div id="header" style="background-color: #000000; margin:0 auto;">
			<header id="branding" role="banner" style="width: 1024px; margin: 0px auto;">
				<div id="logo" style="padding-top: 50px; padding-bottom: 20px;">
					<a href="<?php echo esc_url( home_url( '/' ) ); ?>">
						<img src="<?php header_image(); ?>" alt="Artience" style="width: auto; height: auto;" />
					</a>
				</div>
				<?php
					// Has the text been hidden?
					if ( 'blank' == get_header_textcolor() ) :
				?>
				<div class="only-search<?php if ( ! empty( $header_image ) ) : ?> with-image<?php endif; ?>">
					<?php get_search_form(); ?>
				</div>
				<?php
					else :
				?>
				<?php get_search_form(); ?>
				<?php endif; ?>
				<div id="top-icons" style="position: absolute; top: 20px; right: 20px;">
					<ul>
						<li><a href="#"><img src="http://localhost/wp/wp-content/themes/artience/images/headers/fb-icon.png"></a></li>
						<li><a href="#"><img src="http://localhost/wp/wp-content/themes/artience/images/headers/rss-icon.png"></a></li>
						<li><a href="#"><img src="http://localhost/wp/wp-content/themes/artience/images/headers/mail-icon.png">&nbsp;</a></li>
						<li><a class="fb-icon" href="#"></a></li>
					</ul>
				</div>
				<nav id="nav">
					<?php wp_nav_menu( array('theme_location' => 'primary' ) ); ?>
				</nav>
			</header>
		</div>
	
		<div id="fb-root"></div>
	
		<script type="text/javascript">
			//<![CDATA[
			
			// tracking code
			// var _gaq = _gaq || [];
			// _gaq.push(['_setAccount', 'UA-9122987-1']);
			// _gaq.push(['_setCampNameKey', 'NVADID']);
			// _gaq.push(['_setCampSourceKey', 'NVAR']);
			// _gaq.push(['_setCampMediumKey', 'NVADKWD']);
			// _gaq.push(['_setCampTermKey', 'NVKWD']);
			// _gaq.push(['_trackPageview']);
			// 
			// (function() {
			// var ga = document.createElement('script'); ga.type = 'text/javascript'; ga.async = true;
			// ga.src = ('https:' == document.location.protocol ? 'https://ssl' : 'http://www') + '.google-analytics.com/ga.js';
			// var s = document.getElementsByTagName('script')[0]; s.parentNode.insertBefore(ga, s);
			// })();
			// tracking code
			
			
			(function(d, s, id) {
			var js, fjs = d.getElementsByTagName(s)[0];
			if (d.getElementById(id)) return;
			js = d.createElement(s); js.id = id;
			js.src = "//connect.facebook.net/ko_KR/all.js#xfbml=1&appId=177050399083501";
			fjs.parentNode.insertBefore(js, fjs);
			}(document, 'script', 'facebook-jssdk'));
			
			
			
			
			//]]>
		</script>